package com.qianfeng.smartmeeting.dto;

import lombok.Data;

import javax.validation.constraints.FutureOrPresent;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class BookingCreateDto {
    @NotNull(message = "会议室ID不能为空")
    private Long roomId;
    
    @NotNull(message = "时间段ID不能为空")
    private Long slotId;
    
    @NotNull(message = "预约日期不能为空")
    @FutureOrPresent(message = "预约日期不能是过去日期")
    private Date bookingDate;
    
    @NotBlank(message = "会议标题不能为空")
    private String title;
    
    private String purpose;
    
    private List<String> participants;
}